// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// global
import config_ from './config'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import toExcel from './utils/excel'

import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import utils from './utils/util'

Vue.use(ElementUI)
Vue.use(VueQuillEditor)
Vue.use(utils)
Vue.use(require('vue-moment'))

Vue.config.productionTip = false
Vue.prototype.GLOBAL = config_
Vue.prototype.axios = axios
Vue.prototype.$toExcel = toExcel

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
